why algorithm is imp for placements